home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form2
- BorderStyle = 3 'Fixed Double
- Caption = "Rabbit - Setup"
- ControlBox = 0 'False
- Height = 3780
- Left = 1575
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 202
- ScaleMode = 3 'Pixel
- ScaleWidth = 352
- Top = 2010
- Width = 5460
- Begin CommandButton Command4
- Caption = "&Cancel"
- Height = 330
- Left = 3375
- TabIndex = 13
- TabStop = 0 'False
- Top = 2385
- Width = 1590
- End
- Begin CommandButton Command3
- Caption = "Sa&ve && Exit"
- Height = 330
- Left = 3375
- TabIndex = 12
- TabStop = 0 'False
- Top = 1980
- Width = 1590
- End
- Begin CommandButton Command2
- Caption = "Change &Icon"
- Height = 330
- Left = 3375
- TabIndex = 11
- TabStop = 0 'False
- Top = 630
- Width = 1590
- End
- Begin CommandButton Command1
- Caption = "Change &Path"
- Height = 330
- Left = 3375
- TabIndex = 10
- TabStop = 0 'False
- Top = 225
- Width = 1590
- End
- Begin TextBox Text5
- Height = 330
- Left = 900
- TabIndex = 9
- TabStop = 0 'False
- Text = "Text5"
- Top = 2385
- Width = 2220
- End
- Begin TextBox Text4
- Height = 330
- Left = 900
- TabIndex = 8
- TabStop = 0 'False
- Text = "Text4"
- Top = 1845
- Width = 2220
- End
- Begin TextBox Text3
- Height = 330
- Left = 900
- TabIndex = 7
- TabStop = 0 'False
- Text = "Text3"
- Top = 1305
- Width = 2220
- End
- Begin TextBox Text2
- Height = 330
- Left = 900
- TabIndex = 6
- TabStop = 0 'False
- Text = "Text2"
- Top = 765
- Width = 2220
- End
- Begin TextBox Text1
- Height = 330
- Left = 900
- TabIndex = 5
- TabStop = 0 'False
- Text = "Text1"
- Top = 225
- Width = 2205
- End
- Begin VScrollBar VScroll1
- Height = 2640
- Left = 30
- TabIndex = 14
- Top = 135
- Width = 285
- End
- Begin PictureBox Picture5
- BackColor = &H00E0E0E0&
- BorderStyle = 0 'None
- Height = 480
- Left = 360
- ScaleHeight = 480
- ScaleWidth = 480
- TabIndex = 4
- Top = 2295
- Width = 480
- End
- Begin PictureBox Picture4
- BackColor = &H00E0E0E0&
- BorderStyle = 0 'None
- Height = 480
- Left = 360
- ScaleHeight = 480
- ScaleWidth = 480
- TabIndex = 3
- Top = 1755
- Width = 480
- End
- Begin PictureBox Picture3
- BackColor = &H00E0E0E0&
- BorderStyle = 0 'None
- Height = 480
- Left = 360
- ScaleHeight = 480
- ScaleWidth = 480
- TabIndex = 2
- Top = 1215
- Width = 480
- End
- Begin PictureBox Picture2
- BackColor = &H00E0E0E0&
- BorderStyle = 0 'None
- Height = 480
- Left = 360
- ScaleHeight = 480
- ScaleWidth = 480
- TabIndex = 1
- Top = 675
- Width = 480
- End
- Begin PictureBox Picture1
- BackColor = &H00E0E0E0&
- BorderStyle = 0 'None
- Height = 480
- Left = 360
- ScaleHeight = 480
- ScaleWidth = 480
- TabIndex = 0
- Top = 135
- Width = 480
- End
- Begin Menu Special
- Caption = "&Special"
- Begin Menu OnTop
- Caption = "Allways on &top"
- End
- Begin Menu About
- Caption = "&About Rabbit"
- End
- Begin Menu delimiter
- Caption = "-"
- End
- Begin Menu Exit
- Caption = "E&xit"
- End
- End
- Option Explicit
- Dim PicIndex As Integer
- Sub About_Click ()
- form4.Show 1
- End Sub
- Sub Command1_Click ()
- Dim x As Integer
- Dim pt As String
- form3.Caption = "Change Path"
- form3.Text1 = "*.exe"
- form3.File1.Pattern = "*.exe"
- form3.Show 1
- pt = form3!Text1.Text
- If pt <> "" Then
- If Right$(form3!Dir1, 1) <> "\" Then
- pt = form3!Dir1.Path + "\" + pt
- Else
- pt = form3!Dir1.Path + pt
- End If
- KnappPath(PicIndex + vscroll1.Value - 1) = pt
- Call ShowPic
- End If
- Unload form3
- End Sub
- Sub Command2_Click ()
- Dim pt As String
- form3.Caption = "Change Icon"
- form3.Text1 = "*.ico;*.bmp"
- form3.File1.Pattern = "*.ico;*.bmp"
- form3.Show 1
- pt = form3!Text1.Text
- If pt <> "" Then
- If Right$(form3!Dir1, 1) <> "\" Then
- pt = form3!Dir1.Path + "\" + pt
- Else
- pt = form3!Dir1.Path + pt
- End If
- KnappIcon(PicIndex + vscroll1.Value - 1) = pt
- Call ShowPic
- End If
- Unload form3
- End Sub
- Sub Command3_Click ()
- Dim x As Integer
- If ontop.Checked = True Then
- OnTopVariabel = True
- Else
- OnTopVariabel = False
- End If
- Open InfoFilNamn For Output As #1
- For x = 0 To 19
- Print #1, KnappPath(x)
- Print #1, KnappIcon(x)
- Print #1, OnTopVariabel
- Close
- form2.Hide
- End Sub
- Sub Command4_Click ()
- form2.Hide
- End Sub
- Sub Exit_Click ()
- form2.Hide
- End Sub
- Sub Form_Load ()
- If OnTopVariabel = True Then
- ontop.Checked = True
- Else
- ontop.Checked = False
- End If
- picture1.BorderStyle = 1
- vscroll1.Max = 15
- Call ShowPic
- End Sub
- Static Sub OnTop_Click ()
- ontop.Checked = Not ontop.Checked
- End Sub
- Sub Picture1_Click ()
- picture1.BorderStyle = 1
- picture2.BorderStyle = 0
- picture3.BorderStyle = 0
- picture4.BorderStyle = 0
- picture5.BorderStyle = 0
- PicIndex = 1
- End Sub
- Sub Picture2_Click ()
- picture1.BorderStyle = 0
- picture2.BorderStyle = 1
- picture3.BorderStyle = 0
- picture4.BorderStyle = 0
- picture5.BorderStyle = 0
- PicIndex = 2
- End Sub
- Sub Picture3_Click ()
- picture1.BorderStyle = 0
- picture2.BorderStyle = 0
- picture3.BorderStyle = 1
- picture4.BorderStyle = 0
- picture5.BorderStyle = 0
- PicIndex = 3
- End Sub
- Sub Picture4_Click ()
- picture1.BorderStyle = 0
- picture2.BorderStyle = 0
- picture3.BorderStyle = 0
- picture4.BorderStyle = 1
- picture5.BorderStyle = 0
- PicIndex = 4
- End Sub
- Sub Picture5_Click ()
- picture1.BorderStyle = 0
- picture2.BorderStyle = 0
- picture3.BorderStyle = 0
- picture4.BorderStyle = 0
- picture5.BorderStyle = 1
- PicIndex = 5
- End Sub
- Sub ShowPic ()
- picture1.Picture = LoadPicture(KnappIcon(0 + vscroll1.Value))
- Text1 = KnappPath(0 + vscroll1.Value)
- picture2.Picture = LoadPicture(KnappIcon(1 + vscroll1.Value))
- text2 = KnappPath(1 + vscroll1.Value)
- picture3.Picture = LoadPicture(KnappIcon(2 + vscroll1.Value))
- text3 = KnappPath(2 + vscroll1.Value)
- picture4.Picture = LoadPicture(KnappIcon(3 + vscroll1.Value))
- text4 = KnappPath(3 + vscroll1.Value)
- picture5.Picture = LoadPicture(KnappIcon(4 + vscroll1.Value))
- text5 = KnappPath(4 + vscroll1.Value)
- End Sub
- Sub VScroll1_Change ()
- Call ShowPic
- End Sub
-